package com.thiny.android.game.thunderbolt.role;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 玩家类，用于存储分数等数据
 * 
 * @author THINY
 * 
 */

public class GamePlayer implements Serializable {

	private static final long serialVersionUID = 1L;
	// 玩家名字
	private String name;
	// 玩家分数
	private long score;
	// 提交时间
	private String time;

	public GamePlayer(String name, long score) {
		this.name = name;
		this.score = score;
		time = new SimpleDateFormat("MM-dd HH:mm").format(new Date());

	}

	public String getName() {
		return name;
	}

	public long getScore() {
		return score;
	}

	public String getTime() {
		return time;
	}

}
